package top.infopub.mgr.mkt.dao;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.dto.mkt.AfterSummaryDto;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.mkt.domain.BidSubsidyDomain;
import top.infopub.mgr.mkt.vo.BidSubsidyVo;
import top.infopub.model.mkt.BidSubsidy;

import com.github.pagehelper.Page;
import top.infopub.model.mkt.ProjectInfo;

import java.util.List;


/** 投标补贴申请(MKT_BID_SUBSIDY) **/
@Repository
public interface BidSubsidyDao extends GenericDao<BidSubsidy, String> {

    /**
     * 根据条件查询投标补贴申请分页数据
     * @param bidSubsidyVo
     * @return
     * @see
     */
    Page<BidSubsidyDomain> selectByDomainWhere(BidSubsidyVo bidSubsidyVo);

    /**
     * 根据条件查询-我审批的投标补贴申请分页数据
     * @param bidSubsidyVo
     * @return
     * @see
     */
    Page<BidSubsidyDomain> selectMyCheckByDomainWhere(BidSubsidyVo bidSubsidyVo);

    /**
     * 新增
     */
    void insertById(BidSubsidy bidSubsidy);

    /**
     * 详情
     */
    BidSubsidyVo queryById(String id);

    AfterSummaryDto queryDetailById(String id);

    void insertByProcess(BidSubsidy bidSubsidy);

    BidSubsidy queryByProCode(@Param("proCode") String proCode);

    List<ProjectInfo> optionalProjectName();

}
